<%--                                                                       --%>
<%-- Copyright (c) 2004-2005 BroadVision, Inc.  All rights reserved.       --%>
<%--                                                                       --%>
<%-- This software is copyrighted. Under the copyright laws, this software --%>
<%-- may not be copied, in whole or in part, without prior written consent --%>
<%-- of BroadVision, Inc. or its assignees. This software is provided      --%>
<%-- under the terms of a license between BroadVision and the recipient,   --%>
<%-- and its use is subject to the terms of that license.                  --%>
<%--                                                                       --%>
<%-- This software may be protected by one or more U.S. and International  --%>
<%-- patents.  Certain applications of BroadVision One-To-One software are --%>
<%-- covered by U.S. patent 5,710,887.                                     --%>
<%--                                                                       --%>
<%-- TRADEMARKS: BroadVision and BroadVision One-To-One are registered     --%>
<%-- trademarks of BroadVision, Inc., in the United States and the         --%>
<%-- European Community, and are trademarks of BroadVision, Inc., in other --%>
<%-- countries.  The BroadVision logo, is a trademark of BroadVision,      --%>
<%-- Inc., in the United States and other countries. Additionally, IONA    --%>
<%-- and Orbix are trademarks of IONA Technologies, Ltd.  RSA, MD5, and    --%>
<%-- RC2 are trademarks of RSA Data Security, Inc.                         --%>
<%--                                                                       --%>

<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %>
<%@ taglib uri="/WEB-INF/struts-bean-el.tld" prefix="bean-el" %>

<script language="JavaScript">

//
//
//
function doCancel(form) {
  var ok = true; // confirm('<bean-el:message key="confirmCancel" bundle="ep.messages"/>');
  if (ok && form != null) {
    <c:url var="cancelUrl" value="/ep/qualifierView.do">
      <c:param name="qualifierId" value="${epQualifierValueForm.map.qualifierId}"/>
    </c:url>
    bCancel = true;
    form.action="<c:out value="${cancelUrl}" escapeXml="false"/>";
    form.submit();
  }
}

</script>

<html-el:javascript formName="epQualifierValueForm" method="validateForm"/>

<table class="zoneFive" width="100%" border="0" cellspacing="0" cellpadding="0" summary="content area">
  <tr>
    <td valign="top" width="100%">
      <div class="pageTitle">
      <c:if test="${epQualifierValueForm.map.qualifierValueId == 0}">
        <bean-el:message key="ep.qualifier.value.new.page.title" bundle="ep.messages"/>
      </c:if>
      <c:if test="${epQualifierValueForm.map.qualifierValueId != 0}">
        <bean-el:message key="ep.qualifier.value.edit.page.title" bundle="ep.messages" arg0="${epQualifierValueDTO.map.name}"/>
      </c:if>
      </div>
      <div class="errorMessage"><html-el:errors bundle="ep.messages"/></div>

      <!- place body here -->

      <html-el:form action="/ep/qualifierValueSave" focus="qualifierValueName" onsubmit="return validateForm(this);">

      <div class="pageSubtitle">
        <span class="left"><bean-el:message key="ep.qualifier.value.information" bundle="ep.messages"/></span>
        <span class="right">&nbsp;</span>
      </div>

      <table class="labelForm" width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td class="label"><bean-el:message key="ep.qualifier" bundle="ep.messages"/>:</td>
        <td class="labelField"><c:out value="${epQualifierValueForm.map.qualifierName}"/>
        </td>
      </tr>

      <tr>
        <td class="label"><bean-el:message key="ep.value" bundle="ep.messages"/>:*</td>
        <td class="labelField">
        <html-el:text size="30" maxlength="80" property="qualifierValueName"/>
        </td>
      </tr>

      <tr>
        <td class="label"><bean-el:message key="ep.qualifier.is.editable" bundle="ep.messages"/>:</td>
        <td class="labelField"><html-el:checkbox property="isEditable" value="true"/>
        </td>
      </tr>
      </table>

      <html-el:hidden property="qualifierId"/>
      <html-el:hidden property="qualifierValueId"/>

      <div class="pageButtonWrap" align="right">
        <input type="reset" name="resetBtn" value="<bean-el:message key='button.reset' bundle="ep.messages"/>" class="inputButton">
        &nbsp;&nbsp;
        <input type="button" name="cancelData" class="inputButton" 
          onClick="doCancel(this.form);" 
          value="<bean-el:message key='button.cancel' bundle="ep.messages"/>">
        <input type="submit" name="saveData" class="inputButton" 
          value="<bean-el:message key='button.save' bundle="ep.messages"/>">
      </div>
      </html-el:form>

    </td>
  </tr>
</table>
